package zhr.chapter5.eight;

public class Desk implements IArea{
    private float length;
    private float width;
    private String type = "Desk";

    public Desk() {
    }

    public Desk(float length, float width) {
        this.length = length;
        this.width = width;
    }

    public float getLength() {
        return length;
    }

    public void setLength(float length) {
        this.length = length;
    }

    public float getWidth() {
        return width;
    }

    public void setWidth(float width) {
        this.width = width;
    }

    @Override
    public String getType() {
        return type;
    }

    @Override
    public float getArea() {
        return this.length*this.width;
    }
}
